<?


// ##############################################################################||
// #                                                                 
// #   PassiveVid (From VBulletin.org)	                                      
// #                                     
// #   To MySBB by Dr.Nabhan   www.moon.ps                        
// #             www.mysmartbb.com                                                
// #   هذا الهاك ملطوش من الفي بي                                 
// #   الموقع الأصلي للهاك الأصلي : http://www.vbulletin.org/forum/showthread.php?t=150761                                     
// #   The Best Is MySmartBB :)   
// #         ملطوش = مأخوذ :D                                                            
// ##############################################################################||




function pvid($nabhan)
{

	$urlrx = array (
		'(?:<a[^\<\>]+href=\")?(?:http://)?(',
		')[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?'
	);
	$customstring = '$PASSIVEEMBED';
	// YouTube
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:[a-zA-Z]{1,4}\.)?youtube.com/(?:watch)?\?v=(.{11}?)'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/\'.$matches[2].\'"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\'.$matches[2].\'" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>\'; return "'.$customstring.'";',
		'id' => 1
		);
	$passiveVid[] = array (
		'string' => '#\[youtube\]([^\[\]]+)\[/youtube\]#',
		'replacement' => 'return \'<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/\'.$matches[1].\'"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\'.$matches[1].\'" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>\';',
		'id' => 1
		);
	// Google
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'video.google.(?:[A-Za-z\.]{2,5})/videoplay\?docid=([0-9\-]+)(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed style="width:400px; height:326px;" wmode="opaque" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=\'.$matches[2].\'&hl=en" flashvars=""> </embed>\'; return "'.$customstring.'";',
		'id' => 2
		);
	$passiveVid[] = array (
		'string' => '#\[googlevideo\]([^\[\]]+)\[/googlevideo\]#',
		'replacement' => 'return \'<embed style="width:400px; height:326px;" id="VideoPlayback" wmode="opaque" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=\'.$matches[1].\'&hl=en" flashvars=""> </embed>\';',
		'id' => 2
		);
	// MySpace
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'vids.myspace.com/index.cfm\?fuseaction=vids\.individual&amp;VideoID=(\d{8,15})(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed src="http://lads.myspace.com/videos/vplayer.swf" wmode="opaque" flashvars="m=\'.$matches[2].\'&v=2&type=video" type="application/x-shockwave-flash" width="430" height="346"></embed>\'; return "'.$customstring.'";',
		'id' => 4
		);
	$passiveVid[] = array (
		'string' => '#\[myspace\]([^\[\]]+)\[/myspace\]#',
		'replacement' => 'return \'<embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=\'.$matches[1].\'&v=2&type=video" wmode="opaque" type="application/x-shockwave-flash" width="430" height="346"></embed>\';',
		'id' => 4
		);
	// MetaCafe
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:www\.)?metacafe.com/watch/([0-9]*\/[A-Za-z0-9_]*)(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed src="http://www.metacafe.com/fplayer/\'.$matches[2].\'.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>\'; return "'.$customstring.'";',
		'id' => 8
		);
	$passiveVid[] = array (
		'string' => '#\[metacafe\]([^\[\]]+)\[/metacafe\]#',
		'replacement' => 'return \'<embed src="http://www.metacafe.com/fplayer/\'.$matches[1].\'.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>\';',
		'id' => 8
		);
	// Yahoo
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'video.yahoo.com/video/play\?vid=(\d+)&amp;matchid=(\d+)(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[4]; $PASSIVEEMBED = \'<embed src="http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf" wmode="opaque" flashvars="vid=\'.$matches[2].\'&id=\'.$matches[3].\'" type="application/x-shockwave-flash" width="425" height="350"></embed>\'; return "'.$customstring.'";',
		'id' => 16
		);
	// Koreus
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:www\.)?koreus.com/video/([^\.]+).html(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<object type="application/x-shockwave-flash" data="http://www.koreus.com/video/\'.$matches[2].\'" wmode="opaque" height="320" width="400"><param name="movie" value="http://www.koreus.com/video/\'.$matches[2].\'"></object>\'; return "'.$customstring.'";',
		'id' => 32
		);
	// Sapo
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'videos.sapo.pt/(.{20})(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed src="http://imgs.sapo.pt/sapovideo/swf/flvplayer-sapo.swf?file=http://rd3.videos.sapo.pt/\'.$matches[2].\'/mov/1" type="application/x-shockwave-flash" width="400" height="325" wmode="transparent"></embed>\'; return "'.$customstring.'";',
		'id' => 64
		);
	// Live Leak
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:www\.)?liveleak.com/view\?i=(.{14})(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed src="http://www.liveleak.com/player.swf" wmode="opaque" width="450" height="370" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="autostart=false&token=\'.$matches[2].\'" scale="showall" name="index"></embed>\'; return "'.$customstring.'";',
		'id' => 256
		);
	// Game Trailers
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:www\.)?gametrailers.com/player/(\d+).html(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="480" height="409"><param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid=\'.$matches[2].\'"/> <param name="quality" value="high" /><embed src="http://www.gametrailers.com/remote_wrap.php?mid=\'.$matches[2].\'" wmode="opaque" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="409"></embed> </object>\'; return "'.$customstring.'";',
		'id' => 512
		);
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:www\.)?gametrailers.com/player/usermovies/(\d+).html(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="480" height="409"><param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?umid=\'.$matches[2].\'"/> <param name="quality" value="high" /><embed src="http://www.gametrailers.com/remote_wrap.php?umid=\'.$matches[2].\'" wmode="opaque" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="409"></embed> </object>\'; return "'.$customstring.'";',
		'id' => 512
		);
	// Street Fire
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'videos.streetfire.net/video/([A-Za-z0-9\-]+)\.htm(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed src="http://videos.streetfire.net/vidiac.swf" FlashVars="video=\'.$matches[2].\'" wmode="opaque" quality="high" bgcolor="#ffffff" width="428" height="352" name="ePlayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>\'; return "'.$customstring.'";',
		'id' => 1024
		);
	// VEOH
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:www\.)?veoh.com/videos/([A-Za-z0-9]+)(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed src="http://www.veoh.com/videodetails2.swf?permalinkId=\'.$matches[2].\'&id=anonymous&player=videodetailsembedded&videoAutoPlay=0" allowFullScreen="true" wmode="opaque" width="540" height="438" bgcolor="#000000" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>\'; return "'.$customstring.'";',
		'id' => 2048
		);	
	// MyVideo.de
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:www\.)?myvideo.de/watch/(\d+)(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<object style="width:470px;height:406px;" type="application/x-shockwave-flash" data="http://www.myvideo.de/movie/\'.$matches[2].\'" wmode="opaque"> <param name="movie" value="http://www.myvideo.de/movie/\'.$matches[2].\'"/>	<param name="FlashVars" value="DESTSERVER=http://www.myvideo.de&LINKTEXT=MyVideo"/> <param name="AllowFullscreen" value="true" /></object>\'; return "'.$customstring.'";',
		'id' => 4096
		);
	// GameSpot
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:www\.)?gamespot.com/video/(\d+)/(\d+)(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[4]; $PASSIVEEMBED = \'<embed id="mymovie" wmode="opaque" width="432" height="355" flashvars="paramsURI=http%3A%2F%2Fwww%2Egamespot%2Ecom%2Fpages%2Fvideo%5Fplayer%2Fproteus%5Fxml%2Ephp%3Fadseg%3D761515%26adgrp%3D11542%26sid%3D\'.$matches[3].\'%26pid%3D\'.$matches[2].\'%26mb%3D%26onid%3D%26nc%3D1193358559372%26embedded%3D1%26showWatermark%3D0%26autoPlay%3D0" allowfullscreen="true" allowscriptaccess="always" quality="high" name="mymovie" src="http://image.com.com/gamespot/images/cne_flash/production/media_player/proteus/gs/proteus_embed.swf" type="application/x-shockwave-flash"/>\'; return "'.$customstring.'";',
		'id' => 8192
		);
	// Stage6
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:stage6\.divx|(?:www\.)?stage6).com/[^"]+video/(\d+)/(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<object codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab" height="480" width="640" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"><param name="autoplay" value="false"><param name="src" value="http://video.stage6.com/\'.$matches[2].\'/.divx" /><param name="custommode" value="Stage6" /><param name="showpostplaybackad" value="false" /><embed type="video/divx" src="http://video.stage6.com/\'.$matches[2].\'/.divx" pluginspage="http://go.divx.com/plugin/download/" wmode="opaque" showpostplaybackad="false" custommode="Stage6" autoplay="false" height="480" width="640" /></object>\'; return "'.$customstring.'";',
		'id' => 16384
		);
	// SevenLoad
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'\w{2}.sevenload.com/videos/([A-Za-z0-9]+)(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<object width="425" height="350"><param name="FlashVars" value="apiHost=api.sevenload.com"/><param name="movie" value="http://en.sevenload.com/pl/\'.$matches[2].\'/425x350/swf" /><embed src="http://en.sevenload.com/pl/\'.$matches[2].\'/425x350/swf" wmode="opaque" type="application/x-shockwave-flash" width="425" height="350" allowfullscreen="true" FlashVars="apiHost=api.sevenload.com"></embed></object>\'; return "'.$customstring.'";',
		'id' => 32768
		);
	// Izlesene
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:www\.)?izlesene.com/video/[^\/]+/(\d+)(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<object width="432" height="344"><param name="movie" value="http://www.izlesene.com/player2.swf?video=\'.$matches[2].\'"></param><param name="wmode" value="transparent"></param><embed src="http://www.izlesene.com/player2.swf?video=\'.$matches[2].\'" wmode="transparent" width="432" height="344" type="application/x-shockwave-flash"></embed></object>\'; return "'.$customstring.'";',
		'id' => 65536
		);
	// Vidiac
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'([A-Za-z0-9\-]+)\.vidiac.com/video/([A-Za-z0-9\-]+)\.htm(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[4]; $PASSIVEEMBED = \'<embed src="http://\'.$matches[2].\'.vidiac.com/vidiac.swf" FlashVars="video=\'.$matches[3].\'" quality="high" bgcolor="#ffffff" width="428" height="352" name="ePlayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" wmode="opaque" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>\'; return "'.$customstring.'";',
		'id' => 131072
		);
	// Xtube
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:[^\.]+\.)?xtube.com/watch_video.php\?cv=\d+&amp;idx=(\d+)&amp;v=([A-Za-z0-9\-\_]+)&amp;cl=([A-Za-z0-9\-\_]+)(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[5]; $PASSIVEEMBED = \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="499" height="428" id="player" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://pc\'.$matches[2].\'.xtube.com/embed_player.swf?idx=pc\'.$matches[2].\'&auto=0&video_id=\'.$matches[3].\'&clip_id=\'.$matches[4].\'" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="http://pc\'.$matches[2].\'.xtube.com/embed_player.swf?idx=\'.$matches[2].\'&auto=0&video_id=\'.$matches[3].\'&clip_id=\'.$matches[4].\'" quality="high" wmode="opaque" bgcolor="#ffffff" width="499" height="428" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>\'; return "'.$customstring.'";',
		'id' => 262144
		);
	// Vidmax
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:www\.)?vidmax.com/index.php/videos/view/(\d+)(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed src="http://vidmax.com/img/vidmax_player.swf" wmode="opaque" width="450" height="447" bgcolor="#FFFFFF" type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="xml=http://vidmax.com/index.php/videos/playlist/&id=\'.$matches[2].\'&autoPlay=false&bg=http://vidmax.com/img/back.jpg" scale="showall" name="index" />\'; return "'.$customstring.'";',
		'id' => 524288
		);
	// Redtube
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:www\.)?redtube.com/(\d+)(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<object height="344" width="434"><param name="movie" value="http://embed.redtube.com/player/"><param name="FlashVars" value="id=\'.$matches[2].\'&style=redtube"><embed src="http://embed.redtube.com/player/?id=\'.$matches[2].\'&style=redtube" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="opaque" height="344" width="434"></object>\'; return "'.$customstring.'";',
		'id' => 1048576
		);
	// Onsmash
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'videos.onsmash.com/v/([A-Za-z0-9]+)(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<object width="448" height="374"><param name="movie" value="http://videos.onsmash.com/e/\'.$matches[2].\'"></param><embed src="http://videos.onsmash.com/e/\'.$matches[2].\'" type="application/x-shockwave-flash" wmode="opaque" width="448" height="374"></embed></object>\'; return "'.$customstring.'";',
		'id' => 2097152
		);
	// Godtube			
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:www\.)?godtube.com/view_video.php\?viewkey=([A-Za-z0-9]+)(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed src="http://godtube.com/flvplayer.swf" FlashVars="viewkey=\'.$matches[2].\'" wmode="transparent" quality="high" width="330" height="270" name="godtube" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>\'; return "'.$customstring.'";',
		'id' => 4194304
		);
	// PornoTube		
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:www\.)?pornotube.com/media.php\?m=(\d+)(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed src="http://pornotube.com/player/v.swf?v=\' . base64_encode("m=" . $matches[2] . "&amp;local=false") . \'" loop="false" quality="high" wmode="opaque" width="480" height="400" name="pornoPlayer" allowfullscreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\'; return "'.$customstring.'";',
		'id' => 8388608
		);
	// PhotoBucket
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:www\.)?photobucket.com/mediadetail/\?media=(?:http%3A%2F%2Fphotobucket.com)?%2Fplayer.swf%3Ffile%3D(.*\.flv)(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed width="448" height="361" type="application/x-shockwave-flash" wmode="transparent" src="http://vid138.photobucket.com/player.swf?file=\'.urldecode($matches[2]).\'"></embed>\'; return "'.$customstring.'";',
		'id' => 16777216
		);
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'s(\d+).photobucket.com/albums/([A-Za-z0-9\-\_\/]+)\?action=view&amp;current=([A-Za-z0-9\-\_]+)(?:.*\.flv)(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[5]; $PASSIVEEMBED = \'<embed width="448" height="361" type="application/x-shockwave-flash" wmode="transparent" src="http://i\'.$matches[2].\'.photobucket.com/player.swf?file=http://vid\'.$matches[2].\'.photobucket.com/albums/\'.$matches[3].$matches[4].\'.flv"></embed>\'; return "'.$customstring.'";',
		'id' => 16777216
		);
	// BrightCove
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:www\.)?brightcove.tv/title.jsp\?title=(\d+)(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed src="http://www.brightcove.tv/playerswf" bgcolor="#FFFFFF" flashVars="initVideoId=\'.$matches[2].\'&servicesURL=http://www.brightcove.tv&viewerSecureGatewayURL=https://www.brightcove.tv&cdnURL=http://admin.brightcove.com&autoStart=false" base="http://admin.brightcove.com" name="bcPlayer" wmode="opaque" width="486" height="412" allowFullScreen="true" allowScriptAccess="always" seamlesstabbing="false" type="application/x-shockwave-flash" swLiveConnect="true" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>\'; return "'.$customstring.'";',
		'id' => 33554432
		);
	// YouKu
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:[a-zA-Z0-0]{1,3}.)?youku.com/v_show/id_[a-zA-Z0-9]{4}([A-Za-z0-9\-\=]+)=\.html(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed src="http://player.youku.com/player.php/sid/\'.$matches[2].\'/v.swf" quality="high" wmode="opaque" width="450" height="372" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"></embed>\'; return "'.$customstring.'";',
		'id' => 67108864
		);
	// LiveVideo
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:www\.)?livevideo.com/video/(?:[^\/]+/)?([A-Za-z0-9]{32})/[A-Za-z0-9\-\_]+\.aspx(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed src="http://www.livevideo.com/flvplayer/embed/\'.$matches[2].\'" type="application/x-shockwave-flash" quality="high" WIDTH="445" HEIGHT="369" wmode="transparent"></embed>\'; return "'.$customstring.'";',
		'id' => 134217728
		);
	// Break
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:www\.)?break.com/index/[^\.]+.html\?matchid=([A-Za-z0-9]+)(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<object width="464" height="392"><param name="movie" value="http://embed.break.com/\'.$matches[2].\'"></param><embed src="http://embed.break.com/\'.$matches[2].\'" wmode="opaque" type="application/x-shockwave-flash" width="464" height="392"></embed></object>\'; return "'.$customstring.'";',
		'id' => 268435456
		);
	// ExpertVillage
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:www\.)?expertvillage.com/video/\d+_([^\.]+)\.htm'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed src="http://www.expertvillage.com/player.swf?flv=\'.$matches[2].\'" type="application/x-shockwave-flash" allowfullscreen="true" wmode="opaque" width="491" height="424"></embed>\'; return "'.$customstring.'";',
		'id' => 536870912
		);
	
	/*
	select all = (last*2) - 1
	$passiveVid[] = array (
		'string' => '#'.$urlrx[0].'(?:[^"]+)?'.$urlrx[1].'#',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'\'; return "'.$customstring.'";',
		'id' => 32
		);
	*/
	foreach ($passiveVid as $k => $v) {
		
			$nabhan = preg_replace_callback($v['string'],create_function('$matches',$v['replacement']),$nabhan);
		
	}

return $nabhan;
}


?>